<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
		$('#chrcount').keyup(function(){
			var len = $('#chrcount').val();
			var char = len.length;	
			if(254-char == 0){
				}
			$('#chrcountlength').html(255-char);	
		});
	});
	
	$(document).ready(function(){
		$('#chrcount2').keyup(function(){
			var len = $('#chrcount2').val();
			var char = len.length;	
			if(254-char == 0){
				}
			$('#chrcountlength2').html(255-char);	
		});
	});
</script>

<div id="mws-container" class="clearfix">
<div class="container">
  <div class="mws-panel grid_8">
    <div class="mws-panel-header"> <span class="mws-i-24 i-list">Edit Page</span> </div>
    <div class="mws-panel-body">
      <div class="mws-form-inline"> <?php echo $form->create(array('action' => 'admin_page_edit/'.$page_details['Page']['slug'].'','method'=>'post','class' => 'mws-form validateform', 'enctype' => 'multipart/form-data')); ?> <?php echo $form->input('Page.id', array('type' => 'hidden' , 'class'=>'mws-textinput ', 'value'=>''.$page_details['Page']['id'].'', 'label' => false,'size'=>52)); ?>
        <div class="mws-form-row">
          <label>* Title :</label>
          <div class="mws-form-item small"> <?php echo $form->input('Page.page_title', array('type' => 'text' , 'value'=>''.$page_details['Page']['page_title'].'', 'class'=>'mws-textinput required', 'label' => false,'size'=>52)); ?> </div>
        </div>
        <div class="mws-form-row">
          <label class="input-label"> Page Slug<em>*</em></label>
          <div class="mws-form-item 	small"> <?php echo $form->input('Page.slug', array('type' => 'text' , 'value'=>''.$page_details['Page']['slug'].'', 'class'=>'mws-textinput required', 'label' => false,'size'=>52)); ?> </div>
        </div>
        <div style="clear:both;"></div>
        <div class="mws-form-row" style="width:90%;">
          <label>Page Content :</label>
          <div class="mws-form-item 	small">
            <?php 
				echo $form->input('Page.page_content', array('type' => 'textarea', 
				'class'=>'mws-textinput required mws-textinput', 'value'=>''.$page_details['Page']['page_content'].'', 'cols'=>'5', 'rows'=>'5', 'label' => false)); 
			?>
            <script type="text/javascript">
			var editor = CKEDITOR.replace( 'PagePageContent' );
			CKFinder.setupCKEditor( editor, { basePath : '<?php echo $website_url; ?>app/webroot/ckfinder' } ) ;  </script> 
            </script> 
          </div>
        </div>
         <div style="clear:both;"></div>
        <div class="mws-form-row" >
          <label>Meta Description:-</label>
          <div class="mws-form-item 	small"> <?php echo $form->input('Page.meta_description', array('type' => 'textarea' ,  'value'=>''.$page_details['Page']['meta_description'].'', 'class'=>'mws-textinput ', 'cols'=>'55', 'rows'=>'5', 'label' => false,'size'=>55)); ?> </div>
        </div>
        
        <div class="mws-form-row">
          <label class="input-label"> Page Keywords:-</label>
          <div class="mws-form-item 	small"> <?php echo $form->input('Page.page_keywords', array('type' => 'textarea' , 'value'=>''.$page_details['Page']['page_keywords'].'', 'class'=>'mws-textinput ', 'cols'=>'55', 'rows'=>'5', 'label' => false,'size'=>55)); ?> </div>
        </div>
        <div class="mws-button-row">
          <input type="submit" class="mws-button black" value="Submit">
        </div>
        </form>
      </div>
    </div>
  </div>
</div>




























